<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="theme-color" content="#000000">
  <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
  <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
  <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
  <title>卖座网</title>

</head>

<body>
  <noscript>
    You need to enable JavaScript to run this app.
  </noscript>
  <div id="root"></div>

  <script>
    // 防穿透
    if ('addEventListener' in document) {
      document.addEventListener('DOMContentLoaded', function () {
        FastClick.attach(document.body);
      }, false);
    }
    if (!window.Promise) {
      document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
    }

    function resetWidth() {
      // 兼容ie浏览器 document.body.clientWidth
      var baseWidth = document.documentElement.clientWidth || document.body.clientWidth;
      // 默认的设置是375px(ip6)的根元素设为100px, 其他的手机都相对这个进行调整
      document.documentElement.style.fontSize = baseWidth / 375 * 100 + 'px'
    }
    resetWidth();
    window.addEventListener('resize', function () {
      resetWidth();
    })      
  </script>
</body>

</html>